package cn.vehicle.domains.vo.req.sysUser;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@Schema(description = "用户登陆请求参数")
public class UserLoginReq {

    @Schema(name = "username", description = "用户名")
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @Schema(name = "password", description = "密码")
    @NotEmpty(message = "密码不能为空")
    @Length(min = 6, message = "密码长度不能小于6")
    private String password;
}
